#define _CRT_SECURE_NO_WARNINGS 1
# include <stdio.h>
int main(void){
	int a = 0, b = 0, c = 0, n = 0, count = 0;
	scanf("%d", &n);
	for (a = n / 5; a>0; a--){
		for (b = n / 2; b>0; b--){
			for (c = n; c>0; c--){
				if (a * 5 + b * 2 + c == n){
					count++;
					printf("fen5:%d, fen2:%d, fen1:%d, total:%d\n", a, b, c, a + b + c);
				}
			}
		}
	}
	printf("count = %d", count);
	return 0;
}